var app = getApp(),
$ = require("../../utils/httpHelper.js")
Page({
  data: {
    height:0,
    hidde:true,
    hidde2: true,
    now_total_fee:0,
    today_fee:0,
    month_fee:0,
    his_total_fee:0
  },
  onLoad: function (options) {
    var  that=this
    wx.getSystemInfo({
      success: function (res) {
        that.setData({ height: res.windowHeight })
      }
    })
    this.onShow()
    $.httpPost("finance_index", { rd_session: wx.getStorageSync('rd_session') }, (data, err) => {
      this.setData({
        now_total_fee: data.data.now_total_fee,
        today_fee: data.data.today_fee,
        month_fee: data.data.month_fee,
        his_total_fee: data.data.his_total_fee
      });
    })
    
  },
  onShow: function () {
    let par = {
      rd_session: app.globalData.userInfo.rd_session
    }
    $.httpPost("member_info", par, (data, err) => {
      wx.setStorageSync('member_type', data.data.data.member_type);
    })
  },
  phone1: function () {
    var that = this;
    wx.makePhoneCall({
      phoneNumber: "17782833823"
    })
  },
  
})